1 /* Generated By:JJTree: Do not edit this line. JavaUnmodifiedClassDeclaration.java */
2
3 package net.sourceforge.jane.jjtree;
4
5 import java.util.Enumeration;
6 import java.util.LinkedList;
7 import java.util.List;
8
9 public class JavaUnmodifiedClassDeclaration extends SimpleNode
10 implements JavaParserConstants {
11
12 private String name;
13
14 public JavaUnmodifiedClassDeclaration(int id) {
15 super(id);
16 }
17
18 public JavaUnmodifiedClassDeclaration(JavaParser p, int id) {
19 super(p, id);
20 }
21
22 public void jjtOpen() {
23 name = JJTreeUtils.findTokenOfKind(parser, IDENTIFIER).image;
24 }
25
26 /*** Accept the visitor. **/
27 public Object jjtAccept(JavaParserVisitor visitor, Object data) {
28 return visitor.visit(this, data);
29 }
30
31 /***
32 * Returns the name of the class.
33 */
34 public String getName() {
35 return name;
36 }
37
38 /***
39 * Returns the name of the super class.
40 */
41 public String getSuperClass() {
42 JavaName name = (JavaName) JJTreeUtils.findFirstChild(this, JavaName.class);
43 return name != null ? name.getValue() : "";
44 }
45
46 /***
47 * Returns the list of interfaces.
48 */
49 public String[] getInterfaces() {
50 return JJTreeUtils.getNameListArray(this);
51 }
52
53 /***
54 * Returns the class body.
55 */
56 public JavaClassBody getClassBody() {
57 return (JavaClassBody) JJTreeUtils.findFirstChild(this, JavaClassBody.class);
58 }
59
60 }
This page was automatically generated by Maven